import unittest
import HTMLTestRunner
from day1.test_cases.test_login import TestLogin
from day1.test_cases.test_register import TestRegister

suite = unittest.TestSuite()
loader = unittest.TestLoader()

print(1)

suite.addTests(loader.loadTestsFromTestCase(TestLogin))
suite.addTests(loader.loadTestsFromTestCase(TestRegister))


with open('../day1/test_result/reportes/test_report.html', 'wb') as file:
    runner = HTMLTestRunner.HTMLTestRunner(stream=file, verbosity=2, title="web自动化测试报告", description=None)
    runner.run(suite)
